package cn.chiship.bs.api.core.config.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author lijian
 */
@Component
public class GlobalProperties {
    /**
     * 项目ID
     */
    @Value("${chiship.id}")
    private String id;

    /**
     * 项目名称
     */
    @Value("${chiship.name}")
    private String name;

    /**
     * 项目标题
     */
    @Value("${chiship.title}")
    private String title;


    /**
     * 版本
     */
    @Value("${chiship.version}")
    private String version;

    /**
     * 版权年份
     */
    @Value("${chiship.copyrightYear}")
    private String copyrightYear;

    /**
     * 生成主键方式
     */
    @Value("${chiship.keyGenerator}")
    private String keyGenerator;

    /**
     * 日志拦截开关
     */
    @Value("${chiship.enableLogInterception}")
    private boolean enableLogInterception;


    /**
     * 唯一Key
     */
    @Value("${chiship.appKey}")
    private String appKey;

    /**
     * 唯一锁
     */
    @Value("${chiship.appSecret}")
    private String appSecret;

    /**
     * 唯一ID
     */
    @Value("${chiship.appId}")
    private String appId;

    /**
     * 签名串
     */
    @Value("${chiship.signKey}")
    private String signKey;

    /**
     * 私钥
     */
    @Value("${chiship.privateKey}")
    private String privateKey;

    /**
     * 公钥
     */
    @Value("${chiship.publicKey}")
    private String publicKey;

    /**
     * 接口白名单
     */
    @Value("${chiship.interface.white}")
    private String interfaceWhite;

    /**
     * 导入文件默认存储文件位置
     */
    @Value("${chiship.importData.catalogId}")
    private String importDataCatalog;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCopyrightYear() {
        return copyrightYear;
    }

    public void setCopyrightYear(String copyrightYear) {
        this.copyrightYear = copyrightYear;
    }

    public String getKeyGenerator() {
        return keyGenerator;
    }

    public void setKeyGenerator(String keyGenerator) {
        this.keyGenerator = keyGenerator;
    }

    public boolean isEnableLogInterception() {
        return enableLogInterception;
    }

    public void setEnableLogInterception(boolean enableLogInterception) {
        this.enableLogInterception = enableLogInterception;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSignKey() {
        return signKey;
    }

    public void setSignKey(String signKey) {
        this.signKey = signKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getInterfaceWhite() {
        return interfaceWhite;
    }

    public void setInterfaceWhite(String interfaceWhite) {
        this.interfaceWhite = interfaceWhite;
    }

    public String getImportDataCatalog() {
        return importDataCatalog;
    }

    public void setImportDataCatalog(String importDataCatalog) {
        this.importDataCatalog = importDataCatalog;
    }
}
